//
//  WmcWatermarkSelectClassifCell.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/4/2.
//

import UIKit

class WmcWatermarkSelectClassifCell: WmcBaseCollectionCell {
    override func makeUI() {
        titleLabel.layer.cornerRadius = 3
        titleLabel.layer.masksToBounds = true
        titleLabel.font = 14.wmc_font
        titleLabel.textAlignment = .center
        addSubview(titleLabel)
        titleLabel.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
    }
    
    func configModel(_ model: WmcWatermarkClassifyModel, isSelect: Bool) {
        titleLabel.text = model.name
        
        if isSelect {
            titleLabel.textColor = .white
            titleLabel.backgroundColor = .wmc_mainTheme
        }else{
            titleLabel.textColor = .wmc_grayH5_606066
            titleLabel.backgroundColor = .wmc_grayH18_F0F0F0
        }
    }
}
